package com.shawn.pgsql.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.shawn.pgsql.config.JsonTypeHandler;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @ author 飞天蝙蝠
 * @ date & time 2024/12/31 10:54
 */
@Data
@TableName("t_order")
public class Order {

    @TableId(type = IdType.AUTO)
    private Long id;

    private BigDecimal amount;

    private String address;

    private String createTime;

    private Boolean pay;

    @TableField(value = "tags", typeHandler = JsonTypeHandler.class)
    private String tags;
}
